<div id="admin-sidebar">	
	<a href="#" id="admin-sidebar-toggle"><i class="glyphicon glyphicon-menu-hamburger"></i></a>
	<ul class="nav">
		<li class="<?php if(isset($menu_active) && $menu_active[0]=="1") echo 'active'; ?>">
			<a href="<?php echo site_url('admin/dashboard'); ?>">Dashboard</a>
		</li>

		<li class="<?php if(isset($menu_active) && $menu_active[0]=="2") echo 'active'; ?>">
			<a href="<?php echo site_url('admin/media'); ?>">Media</a>
		</li>

		<li class="<?php if(isset($menu_active) && $menu_active[0]=="3") echo 'active'; ?>">
			<a href="<?php echo site_url('admin/post'); ?>">Posts</a>
			<ul class="sub">
				<li class="<?php if(isset($menu_active) && $menu_active=="3.1") echo 'active'; ?>"><a href="<?php echo site_url('admin/post'); ?>">All posts</a></li>
				<li class="<?php if(isset($menu_active) && $menu_active=="3.2") echo 'active'; ?>"><a href="<?php echo site_url('admin/post_new'); ?>">Add new</a></li>
				<li class="<?php if(isset($menu_active) && $menu_active=="3.3") echo 'active'; ?>"><a href="<?php echo site_url('admin/categories'); ?>">Categories</a></li>
			</ul>
		</li>

		<li class="<?php if(isset($menu_active) && $menu_active[0]=="4") echo 'active'; ?>">
			<a href="<?php echo site_url('admin/pages'); ?>">Pages</a>
		</li>
	</ul>
</div>	